﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class books
    {
		private int id;
		private string name;
		private double price;
		//设置图书编号属性
		public int Id
		{
			get
			{
				return this.id ;
			}
			set
			{
				id = value;
			}
		}
		//设置图书名称属性
		public string Name
		{
			get
			{
				return this.name;
			}
			set {
				this.name = value;
			}
		}
		//设置图书价格属性
		public double Price
		{
			get
			{
				return this.price;
			}
			set
			{
				price = value;
			}
		}
		public void SayHI() {
            Console.WriteLine("我的编号是{0}，名字是{1}，价格是{2}", this.id,this.name,this.price);
		}
	}

}

 